.class public Lcom/bytedance/sdk/openadsdk/g/d;
.super Ljava/lang/Object;
.source "TTHostNameVerifier.java"

# interfaces
.implements Ljavax/net/ssl/HostnameVerifier;


# static fields
.field public static final a:Lcom/bytedance/sdk/openadsdk/g/d;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Lcom/bytedance/sdk/openadsdk/g/d;

    invoke-direct {v0}, Lcom/bytedance/sdk/openadsdk/g/d;-><init>()V

    sput-object v0, Lcom/bytedance/sdk/openadsdk/g/d;->a:Lcom/bytedance/sdk/openadsdk/g/d;

    return-void
.end method

.method private constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public verify(Ljava/lang/String;Ljavax/net/ssl/SSLSession;)Z
    .locals 2

    const/4 v0, 0x1

    :try_start_0
    const-string v1, "is.snssdk.com"

    .line 1
    invoke-virtual {v1, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_0

    const-string v1, "pangolin.snssdk.com"

    .line 2
    invoke-virtual {v1, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_1

    .line 3
    :cond_0
    invoke-interface {p2}, Ljavax/net/ssl/SSLSession;->getPeerCertificateChain()[Ljavax/security/cert/X509Certificate;

    move-result-object p1

    .line 4
    invoke-static {p1}, Lcom/bytedance/sdk/openadsdk/utils/al;->a([Ljavax/security/cert/Certificate;)Z

    move-result v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :catchall_0
    :cond_1
    return v0
.end method
